package com.itheima.jdk8date;

import java.time.DayOfWeek;
import java.time.LocalDateTime;
import java.time.Month;

public class Demo02 {

    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();

        System.out.println(now.getYear());
        System.out.println(now.getMonthValue());
        Month month = now.getMonth();
        System.out.println(month);
        System.out.println(now.getDayOfMonth());
        System.out.println(now.getDayOfYear());
        DayOfWeek week = now.getDayOfWeek();
        System.out.println(week);
        System.out.println(now.getHour());
        System.out.println(now.getMinute());


    }
}
